<div id="sidebar">

<?php include (TEMPLATEPATH . '/banners.php'); ?>

	<div id="box-tabs" class="box-tabs">
		<ul>
			<li><a href="#tab-pop"><span>Popular</span></a></li>
			<li><a href="#tab-rec"><span>Recent</span></a></li>
			<li><a href="#tab-com"><span>Active Posts</span></a></li>
			<li><a href="#tab-arc"><span>Archive</span></a></li>
		</ul>
		<div id="tab-pop">
			<?php if (function_exists('akpc_most_popular')) : ?>
			<ul>
				<?php akpc_most_popular(10,'<li>','</li>'); ?>
			</ul>
			<?php else : ?>
			<p class="notice">You have to install <a href="http://wordpress.org/extend/plugins/popularity-contest/">Alex King's Popularity Contest</a> plugin.</p>
			<?php endif; ?>
		</div>
		<div id="tab-rec">
               <?php themefunction_recentpost(); ?>
		</div>
		<div id="tab-com">
                <?php themefunction_recentcomments(); ?>
		</div>
		<div id="tab-arc">
                <ul>
                <?php wp_get_archives('type=monthly'); ?>
                </ul>
		</div>
	</div>

	<?php //if ( !function_exists('dynamic_sidebar') || !dynamic_sidebar('Side Bar') ) : ?>

<div class="two">
      <?php include (TEMPLATEPATH . '/side1.php'); ?>
      <?php include (TEMPLATEPATH . '/side2.php'); ?>
</div>
	<?php //endif; ?>
</div>